package com.crm.common.result;

import lombok.Getter;

/**
 * @version 1.0
 * @description: 统一返回结果状态信息类
 * @date 2024/6/3 20:14
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    FAIL(201, "失败"),

    USER_IS_EXIST(202, "用户已存在"),
    INSERT_FAIL(203, "添加失败"),
    UPDATE_FAIL(204, "更新失败"),

    SELECT_FAIL(205, "查无数据"),

    USER_NOT_EXIST(206,"用户不存在")
    ;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}